package org.rcy.framework.api.mq;

import java.io.Serializable;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/11/24 9:59
 */

public interface Message extends Serializable {
    String CONTENT_TYPE_BYTES = "application/octet-stream";
    String CONTENT_TYPE_TEXT_PLAIN = "text/plain";
    String CONTENT_TYPE_PROTO = "application/proto";
    String CONTENT_TYPE_JSON = "application/json";
    String CONTENT_TYPE_XML = "application/xml";
    String DEFAULT_ENCODING = "UTF-8";
    Integer DEFAULT_PRIORITY = 0;
    Integer DELIVERYMODE_PERSISTENT = 2;

    String getQueueName();

    String getContentType();

    String getType();

    String getTopic();
}
